
package cn.edu.scau.cmi.hombio.dao;

import cn.edu.scau.cmi.hombio.domain.MedicineStorage;

import java.util.Calendar;
import java.util.Set;

import org.skyway.spring.util.dao.JpaDao;

import org.springframework.dao.DataAccessException;

/**
 * DAO to manage MedicineStorage entities.
 * 
 */
public interface MedicineStorageDAO extends JpaDao<MedicineStorage> {

	/**
	 * JPQL Query - findMedicineStorageByPrimaryKey
	 *
	 */
	public MedicineStorage findMedicineStorageByPrimaryKey(Integer id) throws DataAccessException;

	/**
	 * JPQL Query - findMedicineStorageByPrimaryKey
	 *
	 */
	public MedicineStorage findMedicineStorageByPrimaryKey(Integer id, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findMedicineStorageById
	 *
	 */
	public MedicineStorage findMedicineStorageById(Integer id_1) throws DataAccessException;

	/**
	 * JPQL Query - findMedicineStorageById
	 *
	 */
	public MedicineStorage findMedicineStorageById(Integer id_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findAllMedicineStorages
	 *
	 */
	public Set<MedicineStorage> findAllMedicineStorages() throws DataAccessException;

	/**
	 * JPQL Query - findAllMedicineStorages
	 *
	 */
	public Set<MedicineStorage> findAllMedicineStorages(int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findMedicineStorageByTime
	 *
	 */
	public Set<MedicineStorage> findMedicineStorageByTime(java.util.Calendar time) throws DataAccessException;

	/**
	 * JPQL Query - findMedicineStorageByTime
	 *
	 */
	public Set<MedicineStorage> findMedicineStorageByTime(Calendar time, int startResult, int maxRows) throws DataAccessException;

}